package com.jgp.security.secmodel;

import com.jgp.common.persistence.UUIDModel;
import com.jgp.sys.annotation.PowerType;

import javax.persistence.*;

/**
 * 项目   parent
 * 作者   loufei
 * 时间   2018/4/6
 */
@Entity
@Table(name = "sec_resource")
public class SecResource extends UUIDModel {
    private static final long serialVersionUID = -5780677069150834236L;
    //资源类型
    @Column(name = "power_type", length = 20)
    @Enumerated(EnumType.STRING)
    private PowerType powerType;
    
    @Column(name = "action")
    private String action;
    
    @Column(name = "remark")
    private String remark;
    
    @Column(name = "group")
    private String group;
    
    @Column(name = "group_remark")
    private String groupRemark;

    @Column(name = "links")
    private String links;

    public SecResource() {
    }

    public SecResource(PowerType powerType, String action, String remark, String group, String groupRemark) {
        this.powerType = powerType;
        this.action = action;
        this.remark = remark;
        this.group = group;
        this.groupRemark = groupRemark;
    }

    public PowerType getPowerType() {
        return powerType;
    }

    public void setPowerType(PowerType powerType) {
        this.powerType = powerType;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getGroupRemark() {
        return groupRemark;
    }

    public void setGroupRemark(String groupRemark) {
        this.groupRemark = groupRemark;
    }

    public String getLinks() {
        return links;
    }

    public void setLinks(String links) {
        this.links = links;
    }
}
